 <div class="col-md-3 col-sm-6" id="cart"> 
     <div style="background-color:#FF7700" class="panel panel-cart top5"> 
      <div class="panel-heading"> 
       <h4 class="panel-title"> <a href="#collapseOne" id="shala"> <i class="fa fa-shopping-cart" id='cates'></i> 购物车 <i class="fa fa-angle-down"></i> <span class="simpleCart_quantity pull-right">0</span> </a> </h4> 
      </div> 
      <div class="panel-collapse collapse in" id="collapseOne"> 
       <div style="padding:5px;" class="panel-body"> 
        <div style="max-height:250px;overflow:auto;"> 
         <div class="simpleCart_items"> 
          <div>
           <div class="headerRow">
            <div class="item-name">
             商品
            </div>
            <div class="item-price">
             单价
            </div>
            <div class="item-decrement"></div>
            <div class="item-quantity">
             数量
            </div>
            <div class="item-increment"></div>
            <div class="item-total">
             总价
            </div>
            <div class="item-remove">
             操作
            </div>
           </div>
          </div>
         </div> 
        </div> 
        <div style="clear:left"></div> 
        <hr class="top5" /> 
        <div class="count">
          数量: 
         <span class="simpleCart_quantity">0</span>
        </div> 
        <div class="ship">
          配送费: 
         <span class="simpleCart_shipping">yen0</span> (含打包费)
        </div> 
        <p class="grand"> 合计总额: <span class="simpleCart_grandTotal">yen0</span></p> 
        <p align="center"><span style="margin-right:20px;" class="pull-right"><a href="javascript:;" class="simpleCart_empty">清空</a> </span> 
         <empty name="uid"> 
          <eq name="isorder" value="0"> 
           <a rel="nofollow" class="btn btn-warning" href="/index.php?m=public&amp;a=login&amp;reurl=&lt;php&gt;echo urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);&lt;/php&gt;"><i class="fa fa-shopping-cart"></i> 立刻结算</a> 
           <else /> 
           <a data-toggle="modal" data-target="#myModal" class="btn btn-warning"><i class="fa fa-shopping-cart"></i> 立刻结算</a> 
          </eq> 
          <else /> 
          <a href="{:U('Cart/index/')}" class="btn btn-warning"><i class="fa fa-shopping-cart"></i> 立刻结算</a> 
         </empty> </p> 
       </div> 
      </div> 
     </div> 
    </div> 



<style type="text/css">
.panel-body {
  height: 0px;
  overflow: hidden;
}
.thumbnail{
  transition:all 0.5s ease-in-out 0.1s;
  border-radius: 10px;
  box-shadow: 0px 3px 5px #eee;
  cursor: pointer;
}
.thumbnail:hover{
  border:2px solid #CD6665;
  box-shadow: 0px 3px 5px #ccc;
}
.i_list h3{text-align: left;border-bottom: 1px solid #eee; padding-bottom: 5px}
.panel{margin-bottom: 0px}
#cart{right:-230px;}
</style>